<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
	<title>首页</title>
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<link rel="stylesheet" type="text/css" href="theme/style/easyui.css">
	<link rel="stylesheet" type="text/css" href="theme/icon.css">
	<script type="text/javascript" src="js/common.js"></script>
	<script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="js/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".menudiv a").each(function (){
				$(this).click(function(){
					$(".menudiv a.select").removeClass("select");
					$(this).addClass("select");
				});
			});
		});
	</script>
</head>
<body background="../images/homeBg.png">
<div class="main">
	<div class="easyui-layout" style="width:1000px;height:600px;">
		<div data-options="region:'north'" border = false style="height:128px">
			<div class="home_head"><span class="welcome">欢迎,<b>${user.name}</b>!&nbsp;&nbsp;设置<a onclick="openUrl('/user/userInfoView.do?id=${user.id}');" href="javascript:void(0);">个人资料</a></span><span class="logout"><a href="/logout.do">退出</a></span></div>
			<div class="home_logo"></div>
		</div>
		<div data-options="region:'west'" border = false title="菜单" style="width:190px;padding: 0px;margin: 0px;" >
			<div class="easyui-accordion"  style="width:190px;height:auto;">
				<c:if test="${not empty menus}">
					<c:forEach items="${menus}" var="menu">
						<div title="${menu.name}" data-options="iconCls:'icon-ok'" class="menudiv">
							<c:if test="${not empty menu.children}">
								<ul>
									<c:forEach items="${menu.children}" var="item">
										<li><a onclick="openUrl('${item.url}');" href="javascript:void(0);">${item.name}</a></li>
									</c:forEach>
								</ul>
							</c:if>
						</div>
					</c:forEach>
				</c:if>
			</div>
		</div>
		<div data-options="region:'center'" border = false style="padding:0;margin:0px; width:810;height:470;text-align: center;">
			<div id="mainpanel" class="easyui-panel" data-options="href:'/home/welcome.do'" style="width:810px;height:468px;padding:0 0 0 2px;margin:0px;border: none;background: url(../images/welcome.png) no-repeat  center;background-position:50% -10px;">
			</div>
		</div>
	</div>
	<div style= "background: url(../images/bottom.png) repeat top;height:3px;"></div> 
	<div><font size="2px" >同方威视技术股份有限公司  版权所有© 2014 All Rights Reserved</font></div>
</div>
</body>
</html>
